package com.laboratory.serviceprovide.util;

import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * @Author acok
 * @description:TODO
 * @Date 2022/12/14 10:13
 * @Version 1.0
 */
public class MD5Util {
          /**
               * @return: (密文)String
               * @param: （原文）String,(散列次数)int,(盐值)String
               * @description: 通过该方法对前台传递的密码进行加密获取加密后密文
               * @Author: Acok
               * @mbggenerated 2022/12/14
               */
    public static String md5Util(String ORIGIN,int COUNT,String SALT){
        return new Md5Hash(ORIGIN,SALT,COUNT).toHex();
    }
}
